package com.service.match.common.utils;

import com.service.match.common.enums.TradingSpotEnum;

public class TradingSpotUtils {

    public static Boolean isBuy(Integer tradeType){
        return TradingSpotEnum.TradeType.BUY.getCode().equals(tradeType);
    }

    public static boolean isMarket(Integer priceType){
        return TradingSpotEnum.PriceType.MARKET.getCode().equals(priceType);
    }

    public static boolean isComplete(Integer spotStatus){
        return TradingSpotEnum.Status.COMPLETED.getCode().equals(spotStatus);
    }

}
